<?php
$config = Configure::read('Newsletter');
$tittel = $config['unsubscribe_tittel'];
$message = $config['unsubscribe_message'];
$root_url = FULL_BASE_URL . $this->webroot;

if(!isset($name)) $name = "";

$tittel = str_replace('%name%', $name, $tittel);

$message_replace = array(
"/%link_subscribe%(.*?)%link_subscribe%/is" => '<a href="' . $root_url . 'newsletter/subscriptions/subscribe" class="emphesize" style="color: #2b7ea2; text-decoration: underline; padding: 2px; background-color: #f2f2f2;">$1</a>'
);
$message = preg_replace(array_keys($message_replace), array_values($message_replace), $message);
?>

<table class="newsletter_content" width="100%" border="0" cellspacing="0" cellpadding="13" style="background-color: #ffffff;">
	<tr>
		<td align="left" valign="top">
			<h3 style="font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; color: #ff7f00;">
				<?php echo $tittel?>
			</h3>
			<p class="bodytext" style="font-family: 'Lucida Grande', 'Trebuchet MS', Trebuchet, Tahoma, sans-serif; font-size: 12px; color: #555; line-height: 20px; padding-right: 50px;">
				<?php echo $message; ?>
			</p>
			<p></p>
		</td>
	</tr>
</table>
